CREATE PROCEDURE coreWFExitActionsGetNextRankForTaskExitPath
(
	@id	int
)
AS

	SELECT MAX(Rank) AS LastRank FROM WFExitActions WHERE FK_ExitPathID=@id;
